<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class MPEG_PS</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class MPEG_PS</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class represents a MPEG Program Stream encoded file as described in  MPEG-1 Systems (ISO/IEC 11172-1) and MPEG-2 Systems (ISO/IEC 13818-1)  standards.</p>
<p class="description"><p>The Program Stream is a stream definition which is tailored for communicating  or storing one program of coded data and other data in environments where  errors are very unlikely, and where processing of system coding, e.g. by  software, is a major consideration.</p><p>This class only supports the parsing of the play duration.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Sven Vollbehr &lt;<a href="mailto:svollbehr@gmail.com">svollbehr@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> $Rev: 1 $</li>
				<li><span class="field">copyright:</span> Copyright (c) 2008 The PHP Reader Project Workgroup</li>
				<li><span class="field">todo:</span> Full implementation</li>
				<li><span class="field">license:</span> <a href="http://code.google.com/p/php-reader/wiki/License">New BSD License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_MPEG---PS.php.html">/MPEG/PS.php</a> (line <span class="field">63</span>)
		</p>
		
				
		<pre><a href="../../php-reader/MPEG/MPEG_Object.html">MPEG_Object</a>
   |
   --MPEG_PS</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																												
												<div class="method-definition">
											<span class="method-result">MPEG_PS</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string|<a href="../../php-reader/Reader.html">Reader</a></span>&nbsp;<span class="var-name">$filename</span>, [<span class="var-type">Array</span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getFormattedLength" title="details" class="method-name">getFormattedLength</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$seconds</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#getLength" title="details" class="method-name">getLength</a>
										()
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
										<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../php-reader/MPEG/MPEG_Object.html">MPEG_Object</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../../php-reader/MPEG/MPEG_Object.html#var$_reader">MPEG_Object::$_reader</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">75</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructs the class with given file and options.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">MPEG_PS</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string|<a href="../../php-reader/Reader.html">Reader</a></span>&nbsp;<span class="var-name">$filename</span>, [<span class="var-type">Array</span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string|<a href="../../php-reader/Reader.html">Reader</a></span>
				<span class="var-name">$filename</span><span class="var-description">: The path to the file, file descriptor of an                                 opened file, or <a href="../../php-reader/Reader.html">Reader</a> instance.</span>			</li>
					<li>
				<span class="var-type">Array</span>
				<span class="var-name">$options</span><span class="var-description">: The options array.</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../php-reader/MPEG/MPEG_Object.html#method__construct">MPEG_Object::__construct()</a></dt>
						<dd>Constructs the class with given parameters.</dd>
					</dl>
			
	</div>
<a name="methodgetFormattedLength" id="getFormattedLength"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getFormattedLength</span> (line <span class="line-number">142</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the exact playtime given in seconds as a string in the form of  [hours:]minutes:seconds.milliseconds.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getFormattedLength
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$seconds</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$seconds</span><span class="var-description">: The playtime in seconds.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetLength" id="getLength"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getLength</span> (line <span class="line-number">133</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the exact playtime in seconds.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getLength
		</span>
				()
			</div>
	
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../php-reader/MPEG/MPEG_Object.html">MPEG_Object</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#method__construct">MPEG_Object::__construct()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodformatTime">MPEG_Object::formatTime()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodgetOption">MPEG_Object::getOption()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodgetOptions">MPEG_Object::getOptions()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodnextStartCode">MPEG_Object::nextStartCode()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodprevStartCode">MPEG_Object::prevStartCode()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodsetOption">MPEG_Object::setOption()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#methodsetOptions">MPEG_Object::setOptions()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#method__get">MPEG_Object::__get()</a></span><br>
													<span class="method-name"><a href="../../php-reader/MPEG/MPEG_Object.html#method__set">MPEG_Object::__set()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 01 Jan 2009 14:59:34 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>